#!/bin/bash
find /home/wangr/shell-100/var/log -type f -name "*.log" -mtime +3 > /tmp/file.list
/bin/tar zcvf file.tar.gz `cat /tmp/file.list|xargs`
rsync -a file.tar.gz 172.22.128.44:/tmp
cat /tmp/file.list|xargs rm -rf 
